Fix FTBFS on power "not a constant expression"
authorDebian Games Team <pkg-games-devel@lists.alioth.debian.org>
Wed, 1 Jul 2026 07:39:47 +0000 (09:39 +0200)
committerJordi Mallach <jordi@debian.org>
Wed, 1 Jul 2026 07:39:47 +0000 (09:39 +0200)
commit72c84d44b6d1339d458dfd65d6979e47598986b7
treedca3d7faf53100797a27e794f216ade20ff26bdd
parent378f4d2bda91f4d569e66b334de1896d3773acd3
Fix FTBFS on power "not a constant expression"

There are some explanation upstream :
https://github.com/mamedev/mame/issues/3157

There are some explanation upstream :
https://github.com/mamedev/mame/issues/3157
and this probably due to the fact that IBM 128bit long double format
is not constant folded.
I slighlty rewrote ""_kHz_XTAL(long double clock) and ""_MHz_XTAL(long double clock)
the way ""_kHz_XTAL(unsigned long long clock) and ""_MHz_XTAL(unsigned long long clock)
which makes the compiler happy.
Also including an upstream change about rounding to get same results as on x86
: https://github.com/mamedev/mame/pull/5164
Author: Frédéric Bonnard <frediz@debian.org>

Gbp-Pq: Name fix-922619.patch
src/emu/xtal.h